import interce from '@/utils/request'

const loginApi = data => {
  return interce({
    url: '/sys/login',
    method: 'post',
    data
  })
}

const getInfoApi = () => {
  return interce({
    url: '/sys/profile',
    method: 'post'
  })
}

const gitUserinfoApi = id => {
  return interce({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}

export { loginApi, getInfoApi, gitUserinfoApi }
